function openNodeDetail(id) {
    window.location.href=constUrl+"views/node/detail.action?nodeId="+id;
}
$.ajax({
    url:constUrl+"/rest/v1/job/"+id,
    type:'post',
//    data:{
//        "jobId":id
//    },
    dataType:'json',
    success: function(responseText) {
        $("#number").html(responseText.jobId);
        $("#name").html(responseText.jobName);
        if (responseText.jobStatus=="DONE"){
            $("#state").html('<div class="am-alert am-alert-success my-state-css">DONE</div>');
        } else if (responseText.jobStatus=="RUNNING"){
            $("#state").html('<div class="am-alert am-alert-success my-state-css">RUNNING</div>');
        } else if (responseText.jobStatus=="PAUSE"){
            $("#state").html('<div class="am-alert am-alert-secondary my-state-css">PAUSE</div>');
        } else if (responseText.jobStatus=="ERROR"){
            $("#state").html('<div class="am-alert am-alert-danger my-state-css">ERROR</div>');
        } else if (responseText.jobStatus=="STOP"){
            $("#state").html('<div class="am-alert am-alert-warning my-state-css">STOPPING</div>');
        } else {
            $("#state").html('状态查询出错');
        }
        $("#job_queue").html(responseText.jobSequence);
        $("#priority").html(responseText.jobPriority);
        $("#scheduling_strategy").html(responseText.scheduleStrategy);
        $("#start_time").html(responseText.submitTime);
        $("#end_time").html(responseText.endTime);
        $("#run_time").html(responseText.startTime);
        $("#command").html(responseText.command);
        var nodeHtml = "";
        var nodeTemp = responseText.executeHost.split(",");
        for (var i=0; i<nodeTemp.length; i++){
            nodeHtml += '<a href="javascript:void(0)" onclick="openNodeDetail(\''+nodeTemp[i]+'\')">'+nodeTemp[i]+'</a>,';
        }
        nodeHtml = nodeHtml.substring(0,nodeHtml.length-1);
        $("#node_group").html(nodeHtml);
        $("#dependent_file").html(responseText.dependentFiles);
        $("#run_table").html(responseText.executeFilePath);
        $("#job_slot").html(responseText.jobSlotQuantity);
        $("#memorynum").html(responseText.usedMemory);
        $("#cpunum").html(responseText.occupiedCpuQuantity);
        $("#cpu_time").html(responseText.cpuExecutedTime);
        $("#mpinum").html(responseText.mpiProcessorsQuantity);
    },
    complete: function() {
    },
    error: function() {
    }
});